|
|
|
|
|
|
|
Figure 28.8
The Microsoft System Information utility. |
|
|
|
|
|
|
|
|
Its very easy to create your own custom About form to use in any application to display system information. Of course, you have to make about a half-dozen API calls, but it can be done. In fact, this presents an ideal situation where you can use a class module to wrap up all the API calls for retrieving system information. The About form shown in Figure 28.9 will give you an idea of the different types of system information you can retrieve via API calls. |
|
|
|
|
|
|
|
|
Examples Filename: ApiAbout.frm |
|
|
|
|
|
|
|
|
Figure 28.9
An About form showing system information. |
|
|
|
|
|
|
|
|
The About form shown in Figure 28.9 has a private procedure called SysInfoGet() that displays all the information shown on the form. Heres the code: |
|
|
|
 |
|
|
|
|
Private Sub SysInfoGet() Dim oSysInfo As New clsSystemInfo |
|
|
|
|
|